<%-- 
    Document   : top_winner
    Created on : Nov 27, 2011, 4:34:56 PM
    Author     : Ngoc Linh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<c:if test="${not empty applicationScope.nguoichoi}">
    <div class="sidebar_panel">
        <p class="top_sidebar_panel">
            TOP NGƯỜI CHƠI</p>
        <div class="content_sidebar_panel" id="winner">
            <c:forEach items="${applicationScope.nguoichoi}" var="tk">
                <div class="player_item">
                    <c:if test="${tk.tenTaiKhoan eq sessionScope.taiKhoan.tenTaiKhoan}" >
                        <c:url value="/member/myshop.do" var="link"></c:url>
                    </c:if>
                    <c:if test="${tk.tenTaiKhoan ne sessionScope.taiKhoan.tenTaiKhoan}" >
                        <c:url value="/member/visitshop.do" var="link">
                            <c:param name="account" value="${tk.tenTaiKhoan}" />
                        </c:url>
                    </c:if>
                    <a href="${link}" title="Xem thông tin cá nhân">
                        <img src="${tk.avatar}" alt="avatar"></a>
                    <img src="images/star.png" alt="" class="star">
                    <a href="${link}" title="Xem thông tin cá nhân" class="name">${tk.tenTaiKhoan}</a>
                    <p class="player_kind">
                        <img src="images/stars_${tk.danhGia}.jpg" alt="${tk.danhGia}" />
                    </p>
                    <p>Số lượt đặt giá: <b>${tk.chitietdaugias.size()}</b></p>
                    <p>Số lần chiến thắng: <strong style="padding: 5px;">${tk.daugiathanhcongs.size()}</strong></p>
                </div>
            </c:forEach>                         
        </div>
    </div>
</c:if>

